//use tonic::{transport::Server, Request, Response, Status};

use bridge::bridge_client::BridgeClient;
use bridge::StartRequest;
pub mod bridge {
    tonic::include_proto!("bridge"); // The string specified here must match the proto package name
}

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut client = BridgeClient::connect("http://[::1]:50051").await?;

    let request = tonic::Request::new(StartRequest { id: "Tonic".into() });

    let response = client.pass(request).await?;

    println!("RESPONSE={:?}", response);

    Ok(())
}
